import request from "@/utils/request";

//新增接口
export const addEquipment = (data) => {
  return request({
    url: "base/prodEquipment/add",
    method: "post",
    data,
  });
};
//编辑接口
export const updateEquipment = (data) => {
  return request({
    url: "base/prodEquipment/edit",
    method: "post",
    data,
  });
};
//查询接口
export const listEquipment = (params) => {
  return request({
    url: "base/prodEquipment/list",
    method: "get",
    params,
  });
};
//删除接口
export const delEquipment = (params, data) => {
  return request({
    url: "base/prodEquipment/deleteBatch",
    method: "post",
    params,
    data,
  });
};
//数据回显接口
export const getEquipment = (data) => {
  return request({
    url: `base/prodEquipment/queryById?id=${data}`,
    method: "get",
    data,
  });
};
// 获取产品列表
export function syncEAMEqptList(params) {
  return request({
    url: "base/prodEquipment/syncEAMEqptList",
    method: "get",
    params,
  });
}
